package com.edais.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import com.edais.domain.WinUser;
import com.edais.persistence.WinMapper;

@Repository

public class WinDao {
	@Autowired
	private WinMapper winMapper;

	/**
	 * 获取已获得奖励总数
	 */
	public Map getMyWinTotalNum(String userId) throws Exception {
		return this.winMapper.getMyWinTotalNum(userId);
	}
	
	/**
	 * 根据邀请码获取邀请人数
	 */
	public List<WinUser> getMyWinList(String userId, Integer rowBegin, Integer rowEnd) throws Exception {
		return this.winMapper.getMyWinList(userId, rowBegin, rowEnd);
	}
	
}
